<?
//读取某个板块的所有内容,存放在plate中.
//传递过来的参数是对应plate的mid项
//传递过来的参数在每个页面的顶部都会定义
function get_plate_detail($str)
{
global $table_Prefix;
global $sys_list_table;
global $sys_term_table;
global $sys_plate_table;
//设置需要搜索的表格的前缀后缀
$table_Suffix = $sys_plate_table;
$table = $table_Prefix . $table_Suffix;
//设置需要搜索的表格的前缀后缀

$result = mysql_query("SELECT * FROM $table where mid = '$str' ");

while ($row = mysql_fetch_array($result)) {
    $plate['nid']= $row['nid'];
    $plate['mid'] = $row['mid'];
    $plate['name'] = $row['name'];
    $plate['banner_id'] = $row['banner_id'];
    $plate['detail'] = $row['detail'];
    $plate['introduce']= $row['introduce'];
    $plate['menu_primary_publish'] = $row['menu_primary_publish'];
    $plate['menu_second_publish'] = $row['menu_second_publish'];
    $plate['menu_third_publish'] = $row['menu_third_publish'];
    $plate['title'] = $row['title'];
    $plate['keywords ']= $row['keywords'];
    $plate['description ']= $row['description'];
    $plate['term_public'] = $row['term_public'];
    $plate['list_public'] = $row['list_public'];
    $plate['sys_belong'] = $row['sys_belong'];
    $plate['page_list_num'] = $row['page_list_num'];
    $plate['term_list_page'] = $row['term_list_page'];
    $plate['detail_list_page'] = $row['detail_list_page'];
    $plate['term'] = $row['term'];
    $plate['url ']= $row['url'];
}

return $plate;

}
?>

